import request from '@/utils/request'

// 查询测试列表
export function listSchool(query) {
  return request({
    url: '/routine/school/list',
    method: 'get',
    params: query
  })
}

// 查询测试详细
export function getSchool(id) {
  return request({
    url: '/routine/school/' + id,
    method: 'get'
  })
}

// 新增测试
export function addSchool(data) {
  return request({
    url: '/routine/school/add',
    method: 'post',
    data: data
  })
}

// 修改测试
export function updateSchool(data) {
  return request({
    url: '/routine/school/update',
    method: 'post',
    data: data
  })
}

// 删除测试
export function delSchool(id) {
  return request({
    url: '/routine/school/' + id,
    method: 'post'
  })
}
